<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        ul{
            width: 420px;
            height: 30px;
            background: #ccc;
            list-style: none;
            margin: 0 auto;
            padding: 0;
            margin-top: 10%;
            display: flex;
            align-items: center;
            justify-content: space-around;
        }
        li{
            width: 50px;
            font-size: 14px;
            text-align: center;
            background: green;
        }

        a{
            text-decoration: none;
            color: aqua;
        }
    </style>
</head>
<body>
    <ul>
        <li><a href="#">上一页</a></li>
        <li><a href="#">1</a></li>
        <li><a href="#">2</a></li>
        <li><a href="#">3</a></li>
        <li><a href="#">4</a></li>
        <li><a href="#">5</a></li>
        <li><a href="#">下一页</a></li>
    </ul>
</body>
</html>